<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/8
 * Time: 17:12
 */
$key =$_COOKIE['userkey'];
$userName='';
session_start();

if (!isset($_SESSION[$key]['username'])){
    echo "你尚未登入，<a href='../login.php'>请登入</a>";
    die;

}else{
    $userName= $_SESSION[$key]["username"];
}

?>
<html>
<body>
<form action="ChangPassword_page.php" method="post" >
    银行卡号：<input type="text" name="username" value="<?php echo $userName?>" readonly><br />
    旧密码：<input type="text" name="oldpassword"><br />
    新密码：<input type="text" name="newpassword"><br />
    <input type="submit" value="修改密码">
</form>

</body>
</html>